import { api as viewerApi } from 'v-viewer'
export const usePreview = () => {
  return (images: string[], initialViewIndex: number = 0) => {
    viewerApi({
      options: {
        toolbar: true,
        initialViewIndex: initialViewIndex
      },
      images
    })
  }
}
